﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="USupplerPartList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.UserModel.USupplerPartList" %>

<form id="pagerForm" method="post" action="UserModel/USupplerPartList.aspx">
<input type="hidden" name="ItemCode" value="<%=ItemCode %>" />
<input type="hidden" name="SupplerName" value="<%=SupplerName %>" />
<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="UserModel/USupplerPartList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
   <div class="searchBar">
       <table class="searchContent">
            <tr>
                <td>
                   物料：
                </td>
                <td>
                    <input type="text" name="ItemCode" value="<%=ItemCode %>" />
                </td>
                <td>
                   供应商：
                </td>
                <td>
                    <input type="text" name="SupplerName" value="<%=SupplerName %>" class="autocomplete"  value="" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getsupplierlist" swidth="300"/>
                </td>
                <td>
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</div>
<div class="pageContent">
     <div class="panelBar">
        <ul class="toolBar">
            <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="UserModel/USupplerPartAddInput.aspx" target="dialog" title="提供件入库" rel="USupplerPartAddInput"><span>提供件入库</span></a></li>
           <%} %>
            <% if (HasPower(IHISCETeim.Web.Permission.删除))
               {%>
            <li><a class="delete" href="sysAjaxDone.ashx?ajaxmethod=DeleteUSupplerPart&itemcode={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
           <%} %>
        </ul>
    </div>
   <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="table" width="100%" layouth="112">
        <thead>
            <tr  >   
                
                <th  orderField="ItemCode" class="asc">
                    物料号
                </th>
                <th orderField="ItemName" class="asc">
                    物料名称
                </th>              
                <th orderField="StockQuantity" class="asc">
                    库存数量
                </th>
                <th  align="center">
                    供应商
                </th>
                
                <th>操作</th>                           
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("ItemCode") %>">
                 
				<td>
                    <%# Eval("ItemCode")%>
                </td>
				<td>
                     <%# Eval("ItemName")%>
                </td>
               
				<td><%# Eval("StockQuantity")%></td>
				<td><%# Eval("SupplerName")%></td>          
                
                <td>
                    <a  target="dialog" class="btnAssign" title="[<%# Eval("ItemName")%>]明细帐" href="UserModel/USupplerPartDetail.aspx?itemcode=<%# Eval("ItemCode") %>"  rel="USupplerPartDetail" max=false  mask=true  maxable=false  minable=false  resizable=false drawable=true  width="600" height="350">明细帐</a>
                </td>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
         </table>
        </FooterTemplate>
    </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
               <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>
</div>
</form>
